package com.kyomonn.talkischeap.CodingResources;

import androidx.lifecycle.ViewModel;

import com.kyomonn.talkischeap.R;

import java.util.Hashtable;

public class CodingResourcesViewModel extends ViewModel {
    public String[] newsTitles;
    public String[] newsUrls;
    public String[] dailyCodingTitles;
    public String[] dailyCodingUrls;

    Hashtable<Integer, String[]> tutorialTitles = new Hashtable<>();
    Hashtable<Integer, String[]> tutorialUrls = new Hashtable<>();

    public void Init() {
        newsTitles = new String[]{
                "Transformers 作者:未来互联网将演变为 AI A",
                "Easy MQTT:极简高效的 MQTT 服务器，助",
                "Dora-rs:下一代机器人开发框架",
                "Spring Cloud Data Flow 未来仅限商业版本",
                "谷歌 CEO 皮查伊:超 30% 的代码由 AI 生成",
                "开发 MCP Proxy(代理)也可以用 Solon",
                "Java AI(智能体)编排开发就用 Solon Flow",
                "Perplexity 和雅虎均有意收购谷歌 Chrome 浏",
                "Solon Flow:Java AI(智能体)编排开发框架",
        };

        newsUrls = new String[]{
                "https://mp.weixin.qq.com/s/hDgE_7fIb-ps4xSOuced_A",
                "https://juejin.cn/post/7499977945202556965",
                "https://juejin.cn/post/7498295303365574696",
                "https://www.oschina.net/news/347318/spring-cloud-data-flow-commercial",
                "https://www.ithome.com/0/848/895.htm",
                "https://www.oschina.net/news/346417",
                "https://www.jianshu.com",
                "https://www.bing.com",
                "https://www.baidu.com"
        };

        dailyCodingTitles = new String[]{
                "上周热点回顾（4.21-4.27）",
                "浏览器如何确定最终的CSS属性值？解析计算优先级与规则",
                "为什么多智能体不会成功？",
                "STM32操作外设（点亮LED灯）的两种方式"
        };

        dailyCodingUrls = new String[]{
                "https://www.cnblogs.com/cmt/p/18851183",
                "https://www.cnblogs.com/songyao666/p/18851321",
                "https://www.cnblogs.com/yexiaochai/p/18851347",
                "https://www.cnblogs.com/town-master-da/p/18851352",
        };

        tutorialTitles.put(R.id.gv_c_cpp, new String[]{
                "菜鸟C语言",
                "菜鸟C++",
                "w3schoolsC",
                "w3schoolsC++",
                "C语言网",
                "视频教程"
        });
        tutorialTitles.put(R.id.gv_csharp, new String[]{
                "菜鸟C#",
                "w3schools",
                "C语言中文网",
                "极客教程"
        });
        tutorialTitles.put(R.id.gv_java, new String[]{
                "廖雪峰Java教程",
                "菜鸟Java",
                "CSDN",
                "w3schools",
        });
        tutorialTitles.put(R.id.gv_python, new String[]{
                "菜鸟教程",
                "w3schools",
                "知乎"
        });
        tutorialTitles.put(R.id.gv_go, new String[]{
                "菜鸟教程",
                "w3schools"
        });
        tutorialTitles.put(R.id.gv_kotlin, new String[]{
                "菜鸟教程",
                "w3schools"
        });
        tutorialTitles.put(R.id.gv_rust, new String[]{
                "菜鸟教程",
                "w3schools"
        });

        tutorialUrls.put(R.id.gv_c_cpp, new String[]{
                "https://www.runoob.com/cprogramming/c-tutorial.html",
                "https://www.runoob.com/cplusplus/cpp-tutorial.html",
                "https://www.w3schools.com/c/index.php",
                "https://www.w3schools.com/cpp/default.asp",
                "https://www.dotcpp.com/course/c/",
                "https://www.bilibili.com/video/BV1zb5YzkETh/?vd_source=2fd0c1d68bdff813efacce98a2305a2a"
        });
        tutorialUrls.put(R.id.gv_csharp, new String[]{
                "https://www.runoob.com/csharp/csharp-tutorial.html",
                "https://www.w3schools.com/cs/default.asp",
                "https://c.biancheng.net/csharp/",
                "https://geek-docs.com/csharp/csharp-tutorial/csharp.html"
        });
        tutorialUrls.put(R.id.gv_java, new String[]{
                "https://liaoxuefeng.com/books/java/introduction/index.html",
                "https://www.runoob.com/java/java-tutorial.html",
                "https://blog.csdn.net/m0_63815035/article/details/141575029",
                "https://www.w3schools.com/java/default.asp"
        });
        tutorialUrls.put(R.id.gv_python, new String[]{
                "https://www.runoob.com/python/python-tutorial.html",
                "https://www.w3schools.com/python/default.asp",
                "https://zhuanlan.zhihu.com/p/1908901536379180157"
        });
        tutorialUrls.put(R.id.gv_go, new String[]{
                "https://www.runoob.com/go/go-tutorial.html",
                "https://www.w3schools.com/go/default.asp"
        });
        tutorialUrls.put(R.id.gv_kotlin, new String[]{
                "https://www.runoob.com/kotlin/kotlin-tutorial.html",
                "https://www.w3schools.com/kotlin/default.asp"
        });
        tutorialUrls.put(R.id.gv_rust, new String[]{
                "https://www.runoob.com/rust/rust-tutorial.html",
                "https://www.w3schools.com/rust/default.asp"
        });
    }
}